<?php

$_this =& $this;

/* @var $_this View */
/* @var $form FormHelper */
/* @var $editForm EditFormHelper */
/* @var $html HtmlHelper */
/* @var $ehtml EHtmlHelper */
/* @var $javascript JavascriptHelper */
/* @var $jqax JqaxHelper */
/* @var $filterBlock FilterBlock */

?><?=$editForm->create($modelName, array('url'=>array('controller' => 'testings', 'action' => 'enter_result', 'candidate_id' => $this->data[$modelName]["candidate_id"], 'testing_id' => $this->data[$modelName]["id"])));?><?php

	?><?=$editForm->startSet();?><?php
		?><?=$editForm->textarea("result", __d($po_domain, 'result', true), array('required' => true, 'vertical' => false, 'size'=>100));?><?php
	?><?=$editForm->endSet();?><?php

    $buttons = array();
    $buttons[] = $editForm->back($url_part);

    $sum_txt = $editForm->drawAmountTXT($this->data['Test']['price_test'], 'EP');
    $confirm = sprintf(__d("testings", 'direct_enter_result_confirm'.(Auth::o()->is('admin') ? '_for_admin' : ''), true), $sum_txt);
    $buttons[] = $editForm->submitTag(__d(null, 'save', true), array(
        'confirm' => $confirm,
    ));?><?php

    if (count($buttons)) {
    	?><?=$editForm->cell(implode(' ', $buttons));?><?php
    }

?><?=$editForm->end();?><?php

?>